﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Gao.Poker.Command;
using Gao.Poker.Domain;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace PokerTest.Command
{
    [TestClass]
    public class MemberSaveCommandTest
    {
        [TestMethod]
        public void TestExecute()
        {
            MemberSaveCommand command = new MemberSaveCommand(new Action<bool, Member>(delegate {  }));
            Member member = new Member();
            command.Execute(member);
        }

        [TestMethod]
        public void TextInt()
        {
            decimal a = (decimal)(1000 * 32.2 / 100 * (1 - 20 / (float)100));
            decimal a1 = (decimal)((float)1000 * 32.2 / 100 * (1 - 20 / 100));
            int b = (int)(1000 * 32.2 / 100 * (1 - 20 / (float)100));
            int b1 = (int)((float)1000 * 32.2 / 100 * (1 - 20 / 100));

            Debug.WriteLine(a);
            Debug.WriteLine(a1);
            Debug.WriteLine(b);
            Debug.WriteLine(b1);
        }
    }
}
